package net.bwie.jtp.service.impl;

import net.bwie.jtp.bean.TrafficPvReport;
import net.bwie.jtp.bean.TrafficUvReport;
import net.bwie.jtp.mapper.TrafficChannelStatsMapper;
import net.bwie.jtp.service.trafficChannelStatsSerice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TrafficChannelStatsServiceImpl implements trafficChannelStatsSerice {
    // TODO: 2025/5/21 自动装载mapeer接口实现类
    @Autowired
    // TODO: 2025/5/21 添加注释@Autowired,自动构建Mapper实例 
    TrafficChannelStatsMapper  trafficChannelStatsMapper;
    @Override
    // TODO: 2025/5/21 重写父类方法 
    public List<TrafficUvReport> getUvCount(String date) {
        // TODO: 2025/5/21 调用trafficChannelStatsSerice接口方法 
        return trafficChannelStatsMapper.selectUvCount(date);
    }

    @Override
    public List<TrafficPvReport> getPvCount(String date) {
        return trafficChannelStatsMapper.selectPvCount(date);
    }
}
